/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-1-15 上午11:56 Created by lyyang
 */
package com.jade.bss.business.activity;

import java.util.List;

import com.jade.framework.base.criterion.Criteria;
import com.jade.framework.base.util.PagingList;

/**
 * 活动manager
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-1-15 上午11:56
 */
public interface ActivityManager
{

    void add(Activity activity);

    void update(Activity activity);

    Activity get(long id);

    void remove(long... ids);

    List<Activity> list(String ownerType, String ownerId, Criteria criteria);

    PagingList<Activity> query(String ownerType, String ownerId, Criteria criteria);

     PagingList<Activity> query(Criteria criteria);

    List<Activity> list(Criteria criteria);
}
